export default {
  namespaced: true,
  state: {
    list: [1, 2, 3]
  },
  getters: {
    value: state => {
      return state.value;
    }
  },
  mutations: {
    updateValue (state, payload) {
      state.list.unshift(payload)
    }
  },
  actions: {
    updateValue ({ commit }, payload) {
      commit('updateValue', payload);
    }
  }
};